package com.zhoug.common3.adapters.recycler2;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.zhoug.common3.R;

/**错误View的简单实现
 * @Author 35574
 * @Date 2021/3/3
 * @Description
 */
public class SimpleErrorView extends ErrorView {
    private static final String TAG = ">>>SimpleErrorView";
    private static final boolean DEBUG=true;
    private TextView mErrorTextView;

    @Override
    public View getErrorView(ViewGroup parent) {
        TextView textView = (TextView) LayoutInflater.from(parent.getContext()).inflate(R.layout.common_list_error_view, parent, false);
        textView.setText(getErrorText());
        mErrorTextView=textView;
        return textView;
    }

    @Override
    protected TextView getErrorTextView() {
        return mErrorTextView;
    }

}
